package detector

import (
    "../pb"
    "../common"
)

type Record struct {
    lastTime uint64 //lastSendForBeaconWithAckTime:server  lastBeaconRecvTime:cli
    isAlive  bool
}



func NewRecord() *Record {
    return &Record{
        isAlive:  true,
        lastTime: common.NowMillisecond(),
    }
}

type BeaconAckWithError struct {
    ack *pb.BeaconAck
    err error
}
